projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d70ad72
)
Use pselect instead of select in nsterm.m
author
Robert Pluim
<rpluim@gmail.com>
Sat, 5 Mar 2022 19:00:09 +0000
(20:00 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 5 Mar 2022 19:00:09 +0000
(20:00 +0100)
* src/nsterm.m ([EmacsApp fdhandler:]): Use pselect instead of
the single remaining use of select (because we try to avoid using
select directly) (bug#54245).
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 45561b88b502cdd0645e689d2e46bbc44beacbb6..4adb13706d97da20897baa94de1cad6b28c21711 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-5838,7
+5838,7
@@
not_in_argv (NSString *arg)
fd_set fds;
FD_ZERO (&fds);
FD_SET (selfds[0], &fds);
- result =
select (selfds[0]+1, &fds
, NULL, NULL, NULL);
+ result =
pselect (selfds[0]+1, &fds, NULL
, NULL, NULL, NULL);
if (result > 0 && read (selfds[0], &c, 1) == 1 && c == 'g')
waiting = 0;
}